﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class Program
    {
        static void Main(string[] args)
        {
            //    ILogger log = new FileLogger();
            //    log.Log("老师", "删库跑路");

            //    ILogger logConsole = new ConsoleLogger();
            //    logConsole.Log("老师", "删库跑路,此日志只能当时查看");

            Console.Write("请选择日志记录的方式（1文件-2控制台）：");
            string choice = Console.ReadLine();

            if (choice == "1")
            {
                LogManage log = new LogManage();
                log.Logger = new FileLogger();
                log.Log("老师", "删库跑路");
            }
            else if (choice == "2")
            {
                LogManage log = new LogManage();
                log.Logger = new ConsoleLogger();
                log.Log("老师", "删库跑路");
            }
            else
            {

            }

            Console.ReadKey();
        }
    }
}
